package com.model.single;

import java.util.PrimitiveIterator;

/**
 * @author innocent
 * @date 2019/1/16 19:23
 */
public class StaticInnerClass {

    public StaticInnerClass() {
        System.out.println("外部类初始化。。。");
    }

    static {
        System.out.println("外部类的静态代码块。。。");
    }

    static class Inner{
        private Inner(){
            System.out.println("静态内部类初始化。。。");
        }
    }

    public static void main(String[] args) {
        System.out.println("Main方法开始执行。。。");
        //定义外部类
        StaticInnerClass staticInnerClass = new StaticInnerClass();

        //定义静态内部类
        StaticInnerClass.Inner inner = new Inner();
    }
}
